package com.oa.biz.impl;

import java.util.List;

import com.oa.bean.SysFun;
import com.oa.biz.SysFunService;
import com.oa.dao.impl.SysFunDaoImpl;

public class SysFunServiceImpl
	extends CommonService<SysFun>
	implements SysFunService{

	public List<SysFun> getMenus(String id) {
		return new SysFunDaoImpl().findMenuById(id);
	}
	
	public List<SysFun> getSubMenus(String pId,String rId) {
		return new SysFunDaoImpl().findSubMenuById(pId,rId);
	}
	
	@Override
	public List<SysFun> getMenuOrders(){
		return new SysFunDaoImpl().getMenuOrders();
	}

	@Override
	public List<SysFun> getSubMenuOrders(String menuId) {
		return new SysFunDaoImpl().getSubMenuOrders(Integer.parseInt(menuId));
	}

}
